using System;
using System.Collections.Generic;
using System.Text;

namespace Mypro
{
    enum EGroups{
        friends,
        students,
        family,
        workers,
        unknown,
        others
    };
    
    public struct SInfo
    {
        uint id;
        string name;
        string sex;
        string addr;
        string[] telephone = new string[5];
        string[] mobile = new string[5];
        string[] email = new string[5];
        string cardid;
        string favorite;
        string commends;
        EGroups groups;
        string modifytime;

        SInfo first;
        SInfo previous;
        SInfo next;
        SInfo last;

        public SInfo()
        {
            id = 0;
            name = sex = addr = cardid = favorite = commends = modifytime = "";
            //telephone = mobile = email = "";
            groups = EGroups.friends;

            first = previous = next = last = null;
        }
    };

    public class LinkBook:ILink
    {
        SInfo iInfo = new SInfo;
        bool readable;
        //int key;

        public int LinkBook()
        {
            this.readable = false;
            
        }
    }
}
